package com.zqh.indeximgquery.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zqh.indeximgquery.dao.IndexImgDao;
import com.zqh.indeximgquery.service.IndextImgQueryService;
import com.zqh.myfmmall.constants.IndexImgContants;
import com.zqh.myfmmall.entity.IndexImg;
import com.zqh.myfmmall.result.Result;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-18 2:19
 */
@Service("indexImgQueryService")
public class IndextImgQueryServiceImpl extends ServiceImpl<IndexImgDao,IndexImg> implements IndextImgQueryService{

    @Override
    public Result retrieveCurrent() {
        List<IndexImg> indexImgs = query().eq("status", IndexImgContants.NORMAL).orderByAsc("seq").list();
        return Result.success(indexImgs);
    }
}
